import type { App } from 'vue';
import 'dayjs/locale/zh-cn';
import 'ant-design-vue/dist/antd.less'; // 引入官方提供的 less 样式入口文件
import './index.less';
import { createPinia } from 'pinia'
import UI from './UI'
import Directive from './directive'
import Compont from './compontent'

import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime'
dayjs.locale('zh-cn');
dayjs.extend(relativeTime)
const pinia = createPinia()

export default {
    install: (app: App) => {
        app.use(UI);
        app.use(pinia)
        app.use(Compont);
        app.use(Directive);
    }
}